/**
 * @date 9:08:51 AM
 * EducationHomeWorkQuestionDao.java
 * Administrator
 * TODO
 */
package com.qs.education.bean.dao;
import java.util.List;

import com.qs.education.bean.entity.EducationHomeWork;
import com.qs.education.bean.entity.EducationHomeWorkQuestion;
import com.qs.education.bean.entity.EducationQuestion;
/**
 * @class EducationHomeWorkQuestionDao	
 * @author Warren
 * @description
 * @date Nov 22, 2018 
 */
public interface IEducationHomeWorkQuestionDao extends IBaseDao<EducationHomeWorkQuestion>{
	
	/**
	 * @author Warren
	 * @param homework
	 * @return ResponseListBean<EducationHomeWorkQuestion>
	 * @description 根据作业id获得作业的所有问题
	 * @date Nov 22, 2018
	 */
	public List<EducationHomeWorkQuestion> getALLQuestionByHomeWorkId(EducationHomeWork homework);
	
	/**
	 * @author Warren
	 * @param educationQuestion
	 * @param educationHomeWork
	 * @return Long
	 * @description 根据homework和question获得主键id
	 * @date Nov 22, 2018
	 */
	public Long getIdByHomeWorkAndQuestion(EducationQuestion educationQuestion,EducationHomeWork educationHomeWork);
	
	/**
	 * @author Warren
	 * @param educationQuestion
	 * @param educationHomeWork
	 * @return Long
	 * @description 根据homework和question获得EducationHomeWorkQuestion
	 * @date Nov 22, 2018
	 */
	public EducationHomeWorkQuestion findByHomeWorkAndQuestion(EducationQuestion educationQuestion,EducationHomeWork educationHomeWork);
}
